/*
 * @Author       : ljkt
 * @Version      : 1.0
 * @Date         : 2021-10-05 18:00:43
 * @LastEditors: ljkt
 * @LastEditTime: 2024-03-15 17:23:40
 * @Description  :
 */

#ifndef _Dev_Smg_H_
#define _Dev_Smg_H_
#ifdef SMG_ENABLE

#define SMG_LEVEL1 (SMG_COMX * 1)
#define SMG_LEVEL2 (SMG_COMX * 2)
#define SMG_LEVEL3 (SMG_COMX * 3)
#define SMG_LEVEL4 (SMG_COMX * 4)
#define SMG_LEVEL5 (SMG_COMX * 5)
// #define SMG_LEVEL6 (SMG_COMX * 6)
// #define SMG_LEVEL7 (SMG_COMX * 7)
// #define SMG_LEVEL8 (SMG_COMX * 8)
#define SMG_PERIOD SMG_LEVEL5

typedef struct
{
    u8_t Buf[SMG_COMX];
    u8_t Buf_Isr[SMG_COMX];
} s_dev_smg_t;
extern s_dev_smg_t gDev_Smg;
void Dev_Smg_Init(void);
void Dev_Smg_Io_Isr(void);
void Dev_Smg_Io_Level_Isr(u8_t level);
#endif
#endif
